﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using MahApps.Metro.Controls;
using System.Windows.Threading;

namespace KELT
{
    /// <summary>
    /// MainWindow.xaml에 대한 상호 작용 논리
    /// </summary>
    public partial class MainWindow : MetroWindow
    {
        DispatcherTimer timer;

        public MainWindow()
        {
            InitializeComponent();

            Application.Current.MainWindow = this;

            timer = new DispatcherTimer();
            timer.Tick += new EventHandler(timer_Tick);
            timer.Interval = TimeSpan.FromSeconds(3);
            timer.Start();
        }

        private void timer_Tick(object sender, EventArgs e)
        {
            TOOL window = new TOOL();
            MainMenu window2 = new MainMenu();
            window.Show();
            window2.Show();
            //window2.ShowDialog();
            timer.Stop();
            this.Close();
            
        }
    }
}
